﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class vehicle
    {
        public string name;

        public vehicle(string name)
        {
            this.name = name;
        }

        public string Name { get => name; set => name = value; }

        public void carryp()
        {
            Console.WriteLine("{0}是交通工具，可以载人",name);
        }
    }
}
